package com.code.Math;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/8/10 22:27
 */
public class Test {

    public static void main(String[] args) {

        int a = 1, b = 1;
        int[] jump = jump(11);
        System.out.println(jump[9]);
        System.out.println(jump[11]);


    }

    public static int[] jump(int x) {
        int[] ints = new int[x + 1];
        ints[0] = 1;
        ints[1] = 1;
        for (int i = 2; i <= x; i++) {
            ints[i] = ints[i - 1] + ints[ i -2];
        }
        return ints;
    }
}
